Skip to content

Pin Hetzner SSH host fingerprints on first login - #477

Merged
asselstine merged 1 commit into
mainfrom
feat/hetzner-first-ssh-fingerprint
Nov 27, 2026
Merged

asselstine merged 1 commit into
mainfrom
feat/hetzner-first-ssh-fingerprint

Conversation

@asselstine

Copy link
Copy Markdown
Collaborator

Behavior

  • ssh_exec resolves a Hetzner server ID against the authorized project, saves the Ed25519 fingerprint after the first successful login, then opens the command channel. No owner UI step is required for first use.
  • A changed fingerprint stops the connection and requires independent verification. Manually pinned and generic targets continue to use strict matching. The SSH username defaults to the saved value or factorize-agent and may be set on Hetzner calls.
  • Existing TOFU caveat: the first host key is not independently authenticated. Owners can still pre-pin an independently verified fingerprint.

Validation

  • Added MCP/PostgreSQL regression coverage for failed first login, automatic pinning, same session reuse, key mismatch, and owner recovery.
  • Added real SSH transport fixture coverage for fingerprint capture after successful login.
  • Local TypeScript, package boundary, and OpenAPI checks passed; full runtime suite runs in CI.

@asselstine
asselstine merged commit 9dd150b into main Nov 27, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant